{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
            <div class="row">
                <div class="col-sm-6">
                    <h4>添加角色</h4>
                    <form role="form" action="{:url('admin/user/addjs',['id'=>$id])}" method="post">
                        {volist name="data" key="k" id="v"}
                        <div class="form-group">
                             <input   type="checkbox"  class="form-control" value="{$v['id']}" name="name[]" {if condition="in_array($v['name'],$jiaose)"} checked {/if} >{$v['name']}
                        </div>
                        {/volist}
                        <button type="submit" class="btn btn-default">确认添加</button>
                    </form>
                </div>
            </div>
        </form>
    </div>
</div>

{/block}